package core;

import data.IDataProvider;

public class Profile
{
	private String name;
	private IDataProvider data;
	
	public Profile(IDataProvider data){
		this.data = data;
		name = data.getProfileName();
	}
	
	public String getName(){
		return name;
	}
	
	public void rename(String newName){
		name = newName;
		data.renameProfile(newName);
	}
	
	public IDataProvider getData(){
		return data;
	}
}
